<admintpl file="header"/>
<head/>
<body>
<div class="wrap J_check_wrap">
  <ul class="nav nav-tabs">
     <li <eq name="state_id" value="">class="active"</eq>><a href="{:U('Subscribe/index')}">全部公众号</a></li>
     <li <eq name="state_id" value="0">class="active"</eq>><a href="{:U('Subscribe/index',array('state_id'=>0))}">审核中</a></li>
     <li <eq name="state_id" value="2">class="active"</eq>><a href="{:U('Subscribe/index',array('state_id'=>2))}">审核通过</a></li>
     <li <eq name="state_id" value="1">class="active"</eq>><a href="{:U('Subscribe/index',array('state_id'=>1))}">未通过</a></li>
 	 <li><a href="{:U('Forepart/Subindex')}">推送账号</a></li>
  </ul>
    <div class="row">
        <div class="span12">
          
        </div>
    </div>

  <div class="table_list">
<style type="text/css">
	td>img{ width:40px; height:40px; cursor:pointer;}
	
	
</style>

    <table width="100%" cellspacing="0" class="table table-hover">
      <thead>
        <tr>
          <th width="20">ID</th>
		  <th >用户</th>
		  <th>用户类型</th>
          <th align="left" >公众号名称</th>
          <th align="left" >公众号id</th>
          <th align="left" >粉丝数量</th>
          <th align="left" >单图文价格</th>
          <th align="left" >头像截图</th>
          <th align="left" >二维码截图</th>
          <th align="left" >粉丝截图</th>
		  <th>状态</th>
          <th align="left" >提交时间</th>
          <th align="left" >管理</th>
        </tr>
      </thead>
      <tbody>
        <foreach name="content" item="vo">
        <tr>
          <td>{$vo.pid}</td>
          <td>{$vo.user_login}</td>
          <td><if condition="$vo['user_type'] eq 2">流量主<elseif condition="$vo['user_type'] eq 3" />广告主<else/>非法用户</if></td>
          <td>{$vo.pwc_name}</td>
         
          <td>{$vo.pwc_id}</td>
          <td>{$vo.pwc_fsnum}</td>
          <td>{$vo.price_d}</td>
          <td>
          		<if condition="$vo['pwc_tx'] eq '' ">
          			未上传头像图片	
				<else />
					<img  src="{$vo.pew_tx}" title="头像图片 点击放大" />
          		</if>
			
          </td>
		     <td>
          		<if condition="$vo['pwc_ewm'] eq '' ">
          			未上传二维码截图	
				<else />
					<img    src="{$vo.pwc_ewm}" title="二维码截图 点击放大" />
          		</if>
			
        	  </td>
		  <td>
          		<if condition="$vo['pwc_fs'] eq '' ">
          			未上传粉丝截图	
				<else />
					<img  src="{$vo.pwc_fs}" title="粉丝截图 点击放大" />
          		</if>
			
        	  </td>
		  
		  
          <td><if condition="$vo.status eq 2">审核成功<elseif condition="$vo.status eq 1" />审核失败<else/>审核中</if></td>
          <td>{$vo.posttime|date='Y-m-d h:i:s',###}</td>
         
          <td >
          <if condition="$vo.status neq 0">
          		<a href="{:U('Subscribe/shenhe',array('id'=>$vo['pid']))}" class="J_dialog" title="查看{$vo.pwc_name}"  >查看</a>
          <else />
          		<a href="{:U('Subscribe/shenhe',array('id'=>$vo['pid']))}" class="J_dialog" title="审核{$vo.pwc_name}" >审核</a>
          </if>
          </td>
        </tr>
        </foreach>
      </tbody>
    </table>
      <div class="pagination">{$page}</div>
  </div>
  
  

<div class="modal fade bs-example-modal-lg" id="exampleModal"   tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg">
		 <button data-dismiss="modal" class="close" type="button">&times;</button>
			
	
    <div class="modal-content" style="text-align:center;">
      <img src="" style=" margin:15px auto;">
    </div>
  </div>
</div>
  
</div>
<script src="__ROOT__/statics/js/common.js"></script>
<script type="text/javascript">
	
$("td>img").click(function(){

var src=$(this).attr("src");
	$('#exampleModal').find("img").attr("src",src);
	$('#exampleModal').modal('toggle')
});
	
</script>

</body>
</html>